package com.xio.cloud.service;

import com.xio.cloud.domain.CommonResult;
import com.xio.cloud.domain.Payment;
import com.xio.cloud.service.fallback.PaymentFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "cloudalibaba-provider-payment", fallback = PaymentFeignServiceFallBack.class)
public interface PaymentFeignService {

    @GetMapping("/payment/get/{id}")
    CommonResult<Payment> getPayment(@PathVariable("id") Long id);

}
